package com.bbcare.cp.plat.entity.sms;

import java.io.Serializable;

import javax.persistence.Entity;

/**
* @name: fu_informmsg_rule 实体类
* @author: ******
* @createTime: 2018-06-01 17:17:13
* @description 随访提醒规则配置表 （新）
* @modify:
*
*/ 

@Entity
public class FuInformmsgRule  implements Serializable {
	private static final long serialVersionUID = 1L;

	//随访提醒规则id
	private String id;
	//队列id
	private String queueId;
	//科室id
	private String projectId;
	//租户id
	private String tenantId;
	//多长时间重复一次，单位：小时(后台自动发送规则)
	private Double cycleTime;
	//一个任务总限制发送次数，默认-1不限制
	private Integer limitNum;
	//随访提醒方式, 1:app提醒 2:短信提醒 3:邮件提醒 4:微信提醒
	private String informType;
	//短信模板id，对应bs_sms_template.id,微信对应 bs_wechat_template.id
	private String tempId;
	//创建时间
	private String createTime;
	//创建人
	private String createAuthor;
	//允许发送短信的开始时间点
	private String beginTime;
	//允许发送短信的结束时间点
	private String endTime;
	//有效标志位，0无效，1有效
	private String status;
	//多长时间重复一次，单位：小时(门诊医生发送规则)
	private Double outcycleTime;
	//通知规则，0窗口期提醒；1年龄段提醒；2 根据随访日期 3: 任务完成通知  
	private String ruleType;
	//年龄开始天
	private Integer ageBeginDay;
	//年龄结束天
	private Integer ageEndDay;
	//备注
	private String remark;
	//当天往前推多少天内完成了随访任务，则不发提醒
	private Integer ageTaskDay;
	private Integer beforeDay;
	//00:是否需要安排随访时间
	private String scheduleFlag;
	//具体任务id发送规则
	private String taskId;
	//业务类型 具体业务+角色
	private String busiType;
	//详情类型 1：问卷方式  2:固定url 3：按任务配置宣教  关联
	private String detailType;
	//业务类型和角色类型 一起过滤
	private String roleId;
	/**业务小类*/
	private String subBusiType;
	/**事件编码*/
	private String eventCode;
	
	public String getEventCode() {
		return eventCode;
	}

	public void setEventCode(String eventCode) {
		this.eventCode = eventCode;
	}

	public String getSubBusiType() {
		return subBusiType;
	}

	public void setSubBusiType(String subBusiType) {
		this.subBusiType = subBusiType;
	}

	public void setId(String id){
		this.id=id;
	}

	public String getId(){
		return id;
	}

	public void setQueueId(String queueId){
		this.queueId=queueId;
	}

	public String getQueueId(){
		return queueId;
	}

	public void setProjectId(String projectId){
		this.projectId=projectId;
	}

	public String getProjectId(){
		return projectId;
	}

	public void setTenantId(String tenantId){
		this.tenantId=tenantId;
	}

	public String getTenantId(){
		return tenantId;
	}

	public void setCycleTime(Double cycleTime){
		this.cycleTime=cycleTime;
	}

	public Double getCycleTime(){
		return cycleTime;
	}

	public void setLimitNum(Integer limitNum){
		this.limitNum=limitNum;
	}

	public Integer getLimitNum(){
		return limitNum;
	}

	public void setInformType(String informType){
		this.informType=informType;
	}

	public String getInformType(){
		return informType;
	}

	public void setTempId(String tempId){
		this.tempId=tempId;
	}

	public String getTempId(){
		return tempId;
	}

	public void setCreateTime(String createTime){
		this.createTime=createTime;
	}

	public String getCreateTime(){
		return createTime;
	}

	public void setCreateAuthor(String createAuthor){
		this.createAuthor=createAuthor;
	}

	public String getCreateAuthor(){
		return createAuthor;
	}

	public void setBeginTime(String beginTime){
		this.beginTime=beginTime;
	}

	public String getBeginTime(){
		return beginTime;
	}

	public void setEndTime(String endTime){
		this.endTime=endTime;
	}

	public String getEndTime(){
		return endTime;
	}

	public void setStatus(String status){
		this.status=status;
	}

	public String getStatus(){
		return status;
	}

	public void setOutcycleTime(Double outcycleTime){
		this.outcycleTime=outcycleTime;
	}

	public Double getOutcycleTime(){
		return outcycleTime;
	}

	public void setRuleType(String ruleType){
		this.ruleType=ruleType;
	}

	public String getRuleType(){
		return ruleType;
	}

	public void setAgeBeginDay(Integer ageBeginDay){
		this.ageBeginDay=ageBeginDay;
	}

	public Integer getAgeBeginDay(){
		return ageBeginDay;
	}

	public void setAgeEndDay(Integer ageEndDay){
		this.ageEndDay=ageEndDay;
	}

	public Integer getAgeEndDay(){
		return ageEndDay;
	}

	public void setRemark(String remark){
		this.remark=remark;
	}

	public String getRemark(){
		return remark;
	}

	public void setAgeTaskDay(Integer ageTaskDay){
		this.ageTaskDay=ageTaskDay;
	}

	public Integer getAgeTaskDay(){
		return ageTaskDay;
	}

	public void setBeforeDay(Integer beforeDay){
		this.beforeDay=beforeDay;
	}

	public Integer getBeforeDay(){
		return beforeDay;
	}

	public void setScheduleFlag(String scheduleFlag){
		this.scheduleFlag=scheduleFlag;
	}

	public String getScheduleFlag(){
		return scheduleFlag;
	}

	public void setTaskId(String taskId){
		this.taskId=taskId;
	}

	public String getTaskId(){
		return taskId;
	}

	public void setBusiType(String busiType){
		this.busiType=busiType;
	}

	public String getBusiType(){
		return busiType;
	}

	public void setDetailType(String detailType){
		this.detailType=detailType;
	}

	public String getDetailType(){
		return detailType;
	}

	public void setRoleId(String roleId){
		this.roleId=roleId;
	}

	public String getRoleId(){
		return roleId;
	}
}
